<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
	<meta charset="UTF-8">
	<title>汽车租赁管理系统</title>
	<link rel="stylesheet" type="text/css" href="../static/layui/css/layui.css"/>
	<script src="../static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
	<style>
		.layui-circle {
			width: 50px;
			height: 50px;
		}
	</style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
	<div class="layui-header">
		<div class="layui-logo">汽车租赁管理系统</div>
		<ul class="layui-nav layui-layout-left">   </ul>
		<ul class="layui-nav layui-layout-right">
			<li class="layui-nav-item">
				<img class="layui-circle" th:src="|/img/${session.user.image}|" style="margin-right: 10px">
				<label th:text="|${session.user?.name}|" style="margin-right: 10px"></label>
			</li>
			<li class="layui-nav-item">
				<a href="javascript:logout()">注销</a>
			</li>
		</ul>
	</div>
	<div class="layui-side layui-bg-black">
		<div class="layui-side-scroll">
			<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
			<ul class="layui-nav layui-nav-tree" >
				<li class="layui-nav-item layui-nav-itemed">
					<a href="javascript:;">信息管理</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;"
							   data-url="/user/selectByPage"
							   class="site-demo-active">用户管理</a>
						</dd>
						<dd>
							<a href="javascript:;"
							   data-url="/car/selectByPage"
							   class="site-demo-active">汽车管理</a>
						</dd>
						<dd>
							<a href="javascript:;"
							   data-url="/carType/selectByPage"
							   class="site-demo-active">分类管理</a>
						</dd>
						<dd>
							<a href="javascript:;"
							   data-url="/auth/selectByPage"
							   class="site-demo-active">权限管理</a>
						</dd>
					</dl>
					<dd>
						<a href="javascript:;"
						   data-url="/insure/selectByPage"
						   class="site-demo-active">保险管理</a>
					</dd>
					<dd>
						<a href="javascript:;"
						   data-url="/insureType/selectByPage"
						   class="site-demo-active">保险分类</a>
					</dd>
				</li>
			</ul>
		</div>
	</div>
	<div class="layui-body"><!-- 内容主体区域 -->
		<iframe name="rightframe" width="99%" height="97%" src="/echarts/toEcharts"></iframe>
	</div>
	<div class="layui-footer">© JAVA - 汽车租赁管理系统</div>
</div>
<script type="text/javascript">
	var $ = layui.jquery;
	var layer = layui.layer;
	var element = layui.element;
	$('.site-demo-active').click(function() {
		window.open($(this).data('url'), "rightframe");
	});
	element.render();// element.init();
	function openURL(url){
		window.open(url, "rightframe");
	}

	function logout() {
		layer.confirm(
				'您确认要退出么',
				{icon:3},
				function() {
					location.href = '/user/logout'
				}
		);
	}

</script>
</body>
</html>